#学员信息查询，在三个班级中，查找张三信息，判断张三是否存在，张三属于第几个班级。
classes = [["李斯", "赵高", "秦二世"], ["钢蛋儿", "招弟", "铁柱"], ["哈哈", "呵呵", "嘿嘿"]]
j = 1
for i in classes:
    if "铁柱" in i:
        j += 1
        print("铁柱存在%d个班级" % j)


name = input("请输入要查找的姓名:\n")
classes = [["李斯", "赵高", "秦二世"], ["钢蛋儿", "招弟", "铁柱"], ["哈哈", "呵呵", "嘿嘿"]]
# 定义表示符号
flag = False  # 认为不存在
# 遍历
num = 0
# 定义学还是那个班级号
snuw = 0
for cs in classes:


    for c in cs:

        if name == c:
            flag = True

            snuw = num + 1

    num += 1

if flag:
    print(name + "存在班级号是%d" % snuw)

else:
    print(name + "不存在")
